package com.lzx.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzx
 * @since 2023-01-20
 */
@Getter
@Setter
@TableName("second_comments")
@ApiModel(value = "SecondComments对象", description = "")
public class SecondComments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("文章id")
    private Integer articleId;

    @ApiModelProperty("一级评论id")
    private Integer firstId;

    @ApiModelProperty("二级回复中的一级用户id")
    private Integer secondUserId;

    @ApiModelProperty("二级回复中的一级用户昵称")
    private String secondOneNickname;

    @ApiModelProperty("二级回复中的一级用户头像")
    private String secondOneAvatar;

    @ApiModelProperty("二级回复的二级用户id")
    private Integer secondTwoUserId;

    @ApiModelProperty("二级回复的二级用户昵称")
    private String secondTwoNickname;

    @ApiModelProperty("二级回复的二级用户头像")
    private String secondTwoAvatar;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论时间 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("是否已读")
    private Integer isRead;
}
